<template>
  <div>
    <h1>{{ title }}</h1>
    <button @click="incrementCount">增加计数</button>
    <button @click="decreaseCount">减少计数</button>
    <h1>{{ count }}</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      title: '计数器',
      count: 0,
    };
  },
  methods: {
    incrementCount() {
      
      this.count++;
    },
    decreaseCount() {
      this.count--;
    },
  },
};
</script>

<style scoped>
h1 {
  color: blue;
}
</style>
